package org.jetlinks.community.mstn.config;

import org.hswebframework.web.logging.aop.AopAccessLoggerSupport;
import org.hswebframework.web.logging.aop.DefaultAccessLoggerParser;
import org.jetlinks.community.mstn.aop.AopTenantAssetsControllerHandler;
import org.jetlinks.community.mstn.handler.MstnAssetsTypeDefaultHandler;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhengzuowei
 */
@Configuration
public class AopMstnAssetsControllerHandlerAutoConfiguration {

    @Bean
    @ConditionalOnWebApplication(
            type = Type.REACTIVE
    )
    public AopTenantAssetsControllerHandler aopTenantAssetsControllerHandler() {
        return new AopTenantAssetsControllerHandler();
    }


    @Bean
    public MstnAssetsTypeDefaultHandler mstnAssetsTypeDefaultHandler() {
        return new MstnAssetsTypeDefaultHandler();
    }




}
